package com.situ.onlinebookstore.back.service;

import com.github.pagehelper.PageInfo;
import com.situ.onlinebookstore.common.entity.User;

import java.util.List;

public interface UserService {
    //增
    int add(User user) throws Exception;
    //删改
    int edit(User user) throws Exception;
    //查
    //查询所有符合条件的
    List search(User user);

    //分页查询
    PageInfo searchForPage(Integer page, Integer limit, User user);
}
